import QtQuick
import QtQuick3D

import Utils

import Quick3DAssets.PlayTable as Base

Base.PlayTable{
    id:root
    Node {
        id: __materialLibrary__
    }

    //是否启动活塞
    property bool activePiston:false

    QtObject{
        id:d
        property real pistonY:activePiston?100:0

        Behavior on pistonY {
            NumberAnimation{

            }
        }

    }

    IdHacker{
        id:hacker

        target:root

        property Texture tex_TemplateWorld_RGB_png_texture

        property Texture tex_TemplateWorld_RGBA_png_texture

        property PrincipledMaterial brewing_Stand_material

        property Node piston

        Component.onCompleted: {
            tex_TemplateWorld_RGB_png_texture.magFilter = Texture.Nearest
            tex_TemplateWorld_RGBA_png_texture.magFilter = Texture.Nearest
            brewing_Stand_material.alphaMode = PrincipledMaterial.Blend
            piston.y = Qt.binding(function(){return d.pistonY})
        }
    }

}
